#pragma once
#include <iostream>
#include <string>

using namespace std;
class Node
{
public:
	string word;
	int freq;
	Node *nextNode;

	Node(void)
	{
		this->freq = 0;
		this->nextNode = nullptr;
	}

	Node( string word, int freq )
	{
		this->word = word;
		this->freq = freq;
		this->nextNode = nullptr;
	}

	~Node(void)
	{
	}

	void Print()
	{
		cout << word << " => " << freq << endl;
	}
};

